/*
 * @Description: 按键模块-bsp层
 * @Author: yangsw
 * @Date: 2021-06-11 09:49:42
 * @LastEditTime: 2022-05-18 14:57:48
 * @LastEditors: yangsw
 * @Reference: 
 */
#ifndef H_BSP_KEY_H
#define H_BSP_KEY_H

#include "../../com/bsp/bsp_com.h"

#define KEY_PORT            GPIOA
#define KEY_PIN             GPIO_PIN_4

#define KEY_INPUT_PORT_SOURCE GPIOA_PORT_SOURCE
#define KEY_INPUT_PIN_SOURCE  GPIO_PIN_SOURCE4
#define KEY_INPUT_EXTI_LINE   EXTI_LINE4
#define KEY_INPUT_IRQn        EXTI4_IRQn


void Bsp_Key_Gpio_Init(void);
E_Gpio_State Bsp_Key_Get_State(void);
#endif